﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="register.aspx.cs"  MasterPageFile="~/Main.Master" Inherits="GoShopping.Web.register" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
     
    </style>
</asp:Content>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <script type="text/javascript" src="Script/CheckUserName.js"></script>
       <table border="0" cellpadding="0" cellspacing="0" width="819px" >
       <tr>
        <td>
        <table style=" width:500px; text-align: left; font-size:9pt; background-image:url(Images/Login/reg2.jpg); background-repeat:no-repeat; background-position:right ; " border="0" cellpadding="0"   cellspacing="0" >
            <tr>
                <td style=" width:10px; height:20px; vertical-align:bottom;">
                    <img alt="" src="Images/Login/lt.gif" /></td>
                <td style=" background-color:#6f97c4 ; height:20px;">
                    &nbsp;</td>
                <td style=" width:10px; height:20px;">
                    <img alt="" src="Images/Login/rt.gif" /></td>
            </tr>
            <tr>
                <td style=" background-color:#6f97c4 ; width:10px;">
                    &nbsp;</td>
                <td style=" padding-left:10px; padding-top:30px; padding-bottom:50px;">
                   <asp:CreateUserWizard ID="CreateUserWizard1" runat="server"    CompleteSuccessText="已成功创建您的帐户,请及时完善您的个人信息。"  ContinueDestinationPageUrl="~/Login.aspx" CreateUserButtonText="注册"      oncreatinguser="CreateUserWizard1_CreatingUser">
        <WizardSteps>
            <asp:CreateUserWizardStep ID="CreateUserWizardStep1" runat="server">
                <ContentTemplate>
                    <table border="0">
                        <tr>
                            <td style=" text-align:left;  font-size:10pt; font-weight:600; padding-left:10px; padding-bottom:20px;" colspan="2">
                                注册新帐户</td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">用户名:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="UserName" runat="server" onChange="startRequest(this.id)" Width="155px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                                    ControlToValidate="UserName" ErrorMessage="必须填写“用户名”。" ToolTip="必须填写“用户名”。" 
                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                                    <label id="loginName" style="visibility:hidden">*</label>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">密码:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="Password" runat="server" TextMode="Password" Width="155px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                                    ControlToValidate="Password" ErrorMessage="必须填写“密码”。" ToolTip="必须填写“密码”。" 
                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="ConfirmPasswordLabel" runat="server" 
                                    AssociatedControlID="ConfirmPassword">确认密码:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password" Width="155px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" 
                                    ControlToValidate="ConfirmPassword" ErrorMessage="必须填写“确认密码”。" 
                                    ToolTip="必须填写“确认密码”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">电子邮件:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="Email" runat="server" Width="155px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" 
                                    ControlToValidate="Email" ErrorMessage="必须填写“电子邮件”。" ToolTip="必须填写“电子邮件”。" 
                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="Question">安全提示问题:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="Question" runat="server" Width="155px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" 
                                    ControlToValidate="Question" ErrorMessage="必须填写“安全提示问题”。" 
                                    ToolTip="必须填写“安全提示问题”。" ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="right">
                                <asp:Label ID="AnswerLabel" runat="server" AssociatedControlID="Answer">安全答案:</asp:Label>
                            </td>
                            <td align="left">
                                <asp:TextBox ID="Answer" runat="server" Width="155px"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="AnswerRequired" runat="server" 
                                    ControlToValidate="Answer" ErrorMessage="必须填写“安全答案”。" ToolTip="必须填写“安全答案”。" 
                                    ValidationGroup="CreateUserWizard1">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2">
                                <asp:CompareValidator ID="PasswordCompare" runat="server" 
                                    ControlToCompare="Password" ControlToValidate="ConfirmPassword" 
                                    Display="Dynamic" ErrorMessage="“密码”和“确认密码”必须匹配。" 
                                    ValidationGroup="CreateUserWizard1"></asp:CompareValidator>
                            </td>
                        </tr>
                        <tr>
                            <td align="center" colspan="2" style="color:Red;">
                                <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
            </asp:CreateUserWizardStep>
            <asp:CompleteWizardStep ID="CompleteWizardStep1" runat="server">
            </asp:CompleteWizardStep>
        </WizardSteps>
    </asp:CreateUserWizard>
    <asp:Label ID="lbinfo" runat="server" Text="" Visible="false"></asp:Label>  </td>
                <td style=" background-color:#6f97c4 ; width:10px;">
                    &nbsp;</td>
            </tr>
            <tr>
                <td style=" width:10px; height:10px;">
                    <img alt="" src="Images/Login/ld.gif" /></td>
                <td style=" background-color:#6f97c4 ; height:5px; ">
                    </td>
                <td style=" width:10px; height:10px;">
                    <img alt="" src="Images/Login/rd.gif" /></td>
            </tr>
        </table>
       </td>
       </tr>
       </table> 
   
</asp:Content>

